package fei.zhou.lambdalearn.demo3;

/**
 * 描述该类- JPA
 *
 * @author zhoufei
 * @class: Toshow
 * @date 2020/12/22 20:49
 * @Verson 1.0 -2020/12/22 20:49
 * @see
 */
public class Demo2 {
    
    public static void main(String[] args) {
        
        method(s -> Integer.parseInt(s));
        
        System.out.println("-----引用类方法----");
        method(Integer::parseInt);
        
    }
    
    public static void method(Toshow toshow) {
        int i = toshow.toSee("111");
        System.out.println("字符串转int：" + i);
    }
    
    interface Toshow {
        int toSee(String num);
    }
}